package edu.gatech.volt2.drdoommgt.domain;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Doctor User Class that extends User 
 * 
 * @author Perron Jones
 * @author James Rundquist
 */

@Entity
@Table(name="doctor")
public class Doctor extends Nurse{
	
	/**
	 * This is a default constructor that creates a Doctor object
	 */
	public Doctor(){
		super();
		this.setType(UserType.DOCTOR);
	}
	
	/**
	 * This is a constructor that creates a Doctor object with an id
	 */
	public Doctor(int id){
		super(id);
		this.setType(UserType.DOCTOR);
	}
	
	/**
	 * This is a constructor that creates a Doctor object with a name
	 */
	public Doctor(Name name){
		super(name);
		this.setType(UserType.DOCTOR);
	}
	
	/**
	 * Create a new Doctor Order for a patient
	 * 
	 * @param patient
	 * @param followUp 
	 * @param otherInstructions
	 * @param p
	 * @param labWork
	 * @return boolean
	 */
	public boolean createDoctorOrder(User patient, String followUp, String otherInstructions, Prescription p, Labwork labWork){
		// new DoctorOrder()
		return true;
	}
	
	/**
	 * 
	 */
	public void viewReports(){
		// Find all the reports for this doctor
		// SELECT * FROM `reports` WHERE `doctor_id` = :id;
	}
	
	public String toString(){
		return this.getName().toString();
	}

}
